package com.goldenlight.fvms.manager.service.impl;

import com.goldenlight.fvms.manager.entity.FreeApply;
import com.goldenlight.fvms.manager.dao.FreeApplyDao;
import com.goldenlight.fvms.manager.service.FreeApplyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author luocx
 * @since 2019-06-17
 */
@Service
public class FreeApplyServiceImpl extends ServiceImpl<FreeApplyDao, FreeApply> implements FreeApplyService {
 @Autowired
 private FreeApplyDao freeApplyDao;
    @Override
    public int delete(String buildVersion) {
        Map<String,Object> map = new HashMap<>();
        map.put("build_version", buildVersion);
        return freeApplyDao.deleteByMap(map);
    }
}
